
<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.sql.*" errorPage="" %>

<%
	   String tbpath = request.getContextPath();
%>


 

<script>

$("document").ready(function()
{
	//按键查询
	$("#searchkey").keydown(function(e){ 
			 var curkey = e.which; 
			 if(curkey == 13){
				$("#sea_btn_top").click();
       		 }
	});
});




function doChoose(type){
    if(type=="1"){
    	$("#sea1").attr("style","background-image:url(<%=tbpath%>/common/images/menu_hover.gif);font-weight:bold;color:#ffff00;cursor:pointer;");
    	$("#sea2").attr("style","color:white;");
    	$("#sea3").attr("style","color:white;");
    	
    	$("#keywords_1").show();
    	$("#keywords_2").hide();
    	$("#keywords_3").hide();
    }else if(type=="2"){
    	$("#sea2").attr("style","background-image:url(<%=tbpath%>/common/images/menu_hover.gif);font-weight:bold;color:#ffff00;cursor:pointer;)");
    	$("#sea1").attr("style","color:white;");
    	$("#sea3").attr("style","color:white;");
    	
    	$("#keywords_2").show();
    	$("#keywords_1").hide();
    	$("#keywords_3").hide();
    }else if(type=="3"){
    	$("#sea3").attr("style","background-image:url(<%=tbpath%>/common/images/menu_hover.gif);font-weight:bold;color:#ffff00;cursor:pointer;)");
    	$("#sea1").attr("style","color:white;");
    	$("#sea2").attr("style","color:white;");
    	
    	$("#keywords_3").show();
    	$("#keywords_1").hide();
    	$("#keywords_2").hide();
    }
    $("#searchtype").val(type);
}

function goSearch(){
    if($("#searchtype").val()==""){
    	alert("请选择搜索类型,谢谢!");
    	return;
    }
    
    if($("#searchkey").val()==""){
    	alert("请输入关键字,谢谢!");
    	return;
    }
	$("#indexSeaForm").submit();
}


function clickHotKey(keyword,seatype){
	$("#searchtype").val(seatype);
	$("#searchkey").val(keyword);
	$("#indexSeaForm").submit();
}
</script>


<!--banner部分-->
<form id="indexSeaForm" action="<%=tbpath%>/common/indexSearch.jsp" name="indexSeaForm"  method="post">

<input id="searchtype" name="searchtype" style="display:none;width:0px;"  type="text"  />

<div id="banner">
	<div style="width:269px;height:99px;float:left;text-align:left;"><a style="border:0px;" href="/cms"><img style="border:0px;" src="<%=tbpath%>/common/images/logo.jpg" /></a></div>
	 
	<div style="width:645px;height:34px;float:left;margin-top:32px;margin-left:80px;background-image:url(<%=tbpath%>/common/images/menubg.jpg);">
		<ul id="nav2">
			<li onclick="javascript:doChoose('1');" style="cursor:pointer;" ><div id="sea1" style="color:white;">找成果</div></li>
			<li style="width:6px; color:#FFFFFF;">|</li>
			<li onclick="javascript:doChoose('2');" style="cursor:pointer;" ><div id="sea2" style="color:white;">找专家</div></li>
			<li style="width:6px; color:#FFFFFF;">|</li>
			<li onclick="javascript:doChoose('3');" style="cursor:pointer;"><div id="sea3" style="color:white;">找机构</div></li>
			<li style="width:6px; color:#FFFFFF;">|</li>
			
			<li style="display:none;"><a href="#">找项目</a></li>
		</ul> 
		
		<div style="width:75px;height:30px;float:right;margin-right:5px;border:0px;">
			<img id="sea_btn_top" onclick="goSearch();" style="cursor:pointer;" src="<%=tbpath%>/common/images/touming.gif" />
		</div>
		
		<input name="searchkey" id="searchkey" type="text"  style="float:right;width:270px;height:17px;margin-right:8px;margin-top:10px;border:0px;" />
	</div>
	
	
	
	
	
	<div id="keywords_1" style="width:645px;height:30px;line-height:30px;float:right;text-align:left;color:#0054a6;overflow:hidden;"><strong>关键字：</strong>
		<a href="javascript:clickHotKey('安全管理','1');" class="blue">安全管理</a>&nbsp;|&nbsp;
		<a href="javascript:clickHotKey('矿山安全','1');" class="blue">矿山安全</a>&nbsp;|&nbsp;
		<a href="javascript:clickHotKey('矿井通风','1');" class="blue">矿井通风</a>&nbsp;|&nbsp;
		<a href="javascript:clickHotKey('安全工程','1');" class="blue">安全工程</a>&nbsp;|&nbsp;
		<a href="javascript:clickHotKey('劳动卫生','1');" class="blue">劳动卫生</a>
	</div>
	
	<div id="keywords_2" style="display:none;width:645px;height:30px;line-height:30px;float:right;text-align:left;color:#0054a6;overflow:hidden;"><strong>关键字：</strong>
		<a href="javascript:clickHotKey('郭忠平','2');" class="blue">郭忠平</a>&nbsp;|&nbsp;
		<a href="javascript:clickHotKey('陈党义','2');" class="blue">陈党义</a>&nbsp;|&nbsp;
		<a href="javascript:clickHotKey('程久龙','2');" class="blue">程久龙</a>&nbsp;|&nbsp;
		<a href="javascript:clickHotKey('周世宁','2');" class="blue">周世宁</a>
	</div>
	
	<div id="keywords_3" style="display:none;width:645px;height:30px;line-height:30px;float:right;text-align:left;color:#0054a6;overflow:hidden;"><strong>关键字：</strong>
		<a href="javascript:clickHotKey('北京大学','3');" class="blue">北京大学</a>&nbsp;|&nbsp;
		<a href="javascript:clickHotKey('清华大学','3');" class="blue">清华大学</a>&nbsp;|&nbsp;
		<a href="javascript:clickHotKey('北京工业大学','3');" class="blue">北京工业大学</a>&nbsp;|&nbsp;
		<a href="javascript:clickHotKey('西北工业大学','3');" class="blue">西北工业大学</a>&nbsp;|&nbsp;
		<a href="javascript:clickHotKey('重庆大学','3');" class="blue">重庆大学</a>&nbsp;|&nbsp;
		<a href="javascript:clickHotKey('电子科技大学','3');" class="blue">电子科技大学</a>&nbsp;|&nbsp;
		<a href="javascript:clickHotKey('昆明理工大学','3');" class="blue">昆明理工大学</a>
	</div>
	
</div>
<div id="clearboth"></div>
</form>
<!--banner结束-->


